﻿using Game.Assets.Scripts.Manager;
using Game.CheseBoard.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QFramework;

namespace Game.CheseBoard.Data
{
    public class ExtraItemCell : BaseCell
    {
        public ExtraItemCell()
        {
        }

        public ExtraItemCell(int id) : base(id)
        {
        }


        cfg.ExtraItem _extraItem;
        public cfg.ExtraItem ExtraItem
        {
            get
            {
                if (_extraItem == null)
                {
                    _extraItem = table.Tables.TbExtraItem.Get(piece.PieceId);
                }
                return _extraItem;
            }
        }
        public override void SetPiece(int id)
        {
            base.SetPiece(id);
            _extraItem = table.Tables.TbExtraItem.Get(piece.PieceId);
        }
    }
}
